package com.atguigu.gmall.item;


import com.atguigu.gmall.common.config.thread.annotation.EnableThreadPoolExcutor;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author lfy
 * @Description
 * @create 2023-07-15 11:52
 * SpringBoot只扫描主类所在的包及其子包：
 * 主类：  com.atguigu.gmall.item
 * cache: com.atguigu.gmall.cache
 */
//@ComponentScan("com.atguigu.gmall.cache") //使用自己的扫描规则，禁用默认扫描规则

@EnableThreadPoolExcutor
@EnableAspectJAutoProxy
@EnableFeignClients(basePackages = {
        "com.atguigu.gmall.feign.product",
        "com.atguigu.gmall.feign.search"
})
//以后需要用到哪个服务的远程功能就扫哪个人的远程客户端，不要全部扫描
@SpringCloudApplication
public class ItemMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(ItemMainApplication.class, args);
    }
}
